#pragma once
#ifndef OBSTACLE_H
#define OBSTACLE_H

#include "gameobject.h"

class Obstacle : public GameObject
{
public:
    Obstacle(int speed, QGraphicsItem *parent = nullptr);
    void update() override;

    void setSpeed(int speed) { this->speed = speed; }

private:
    int speed;
};

#endif // OBSTACLE_H
